﻿using System.Collections.Generic;
using System.Net;

namespace ProxyFinder {
    /// <summary>
    /// Basic interface required to enable the support for retrieving ICredentials objects
    /// for a given Target/location.
    /// </summary>
    public interface ICredentialProvider {
        /// <summary>
        /// Returns a list of valid/possibly saved credentials for the given target.
        /// </summary>
        /// <param name="target">This is a key that the provider will use to look up credentials for.</param>
        /// <returns></returns>
        ICollection<ICredentials> GetCredentials(string target);
        /// <summary>
        /// Returns default system credentials.
        /// </summary>
        ICredentials DefaultCredentials { get; }
    }
}
